package cn.iocoder.yudao.module.nginxui.controller.admin.config.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - Nginx主配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ConfigRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "11537")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "配置名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("配置名称")
    private String name;

    @Schema(description = "配置描述", example = "你说的对")
    @ExcelProperty("配置描述")
    private String description;

    @Schema(description = "工作进程数")
    @ExcelProperty("工作进程数")
    private String workerProcesses;

    @Schema(description = "最大连接数")
    @ExcelProperty("最大连接数")
    private Integer workerConnections;

    @Schema(description = "错误日志路径")
    @ExcelProperty("错误日志路径")
    private String errorLog;

    @Schema(description = "PID文件路径", example = "16686")
    @ExcelProperty("PID文件路径")
    private String pid;

    @Schema(description = "HTTP块包含的其他配置")
    @ExcelProperty("HTTP块包含的其他配置")
    private String httpInclude;

    @Schema(description = "全局包含的其他配置")
    @ExcelProperty("全局包含的其他配置")
    private String globalInclude;

    @Schema(description = "状态(0-草稿,1-已启用,2-已禁用)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态(0-草稿,1-已启用,2-已禁用)")
    private Integer status;

    @Schema(description = "完整配置内容")
    @ExcelProperty("完整配置内容")
    private String content;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}